Bug 574794 - Can not resize shaped windows on Windows
authorTor Lillqvist <tml@iki.fi>
Wed, 11 Mar 2009 12:04:22 +0000 (12:04 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 11 Mar 2009 12:04:22 +0000 (12:04 +0000)
2009-03-11  Tor Lillqvist  <tml@iki.fi>

Bug 574794 - Can not resize shaped windows on Windows

* gdk/win32/gdkevents-win32.c (gdk_event_translate): On handling
WM_WINDOWPOSCHANGED, don't do anything if the position and size
hasn't changed. I am not exactly sure I understand why this helps
this particular bug.

svn path=/trunk/; revision=22511

ChangeLog
gdk/win32/gdkevents-win32.c

index aff84f74893182a921d934a9897bef7ac26dd18f..eadcb076ec241705ad47affc664318fe6a096b27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-03-11  Tor Lillqvist  <tml@iki.fi>
+
+       Bug 574794 - Can not resize shaped windows on Windows
+
+       * gdk/win32/gdkevents-win32.c (gdk_event_translate): On handling
+       WM_WINDOWPOSCHANGED, don't do anything if the position and size
+       hasn't changed. I am not exactly sure I understand why this helps
+       this particular bug.
+
 2009-03-10  Matthias Clasen  <mclasen@redhat.com>
 
        Bug 574561 – gtk_style_get "shadows" g_object_get
index 599ff8da2e27fcd11007fe769704626ff6d1523a..572a9d09af5e87c2daec3f1aa42e0a11eeb445aa 100644 (file)
@@ -3262,6 +3262,12 @@ gdk_event_translate (MSG  *msg,
                                       buf))))),
                                  windowpos->cx, windowpos->cy, windowpos->x, windowpos->y)));
 
+      /* If position and size haven't changed, don't do anything */
+      if (_sizemove_in_progress &&
+         (windowpos->flags & SWP_NOMOVE) &&
+         (windowpos->flags & SWP_NOSIZE))
+       break;
+
       /* Once we've entered the moving or sizing modal loop, we won't
        * return to the main loop until we're done sizing or moving.
        */